package com.dongdongshop_util;

/*
* HTTP 响应枚举类
* */
public enum ResultEnum {

    SUCCESS(200,"操作成功"),
    FAIT(400,"操作失败"),
    UNAUTH(401,"未认证"),
    NOT_FOUND(404,"接口找不到"),
    ERROR(500,"服务器内部错误");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
